package com.zhixing.web.service.exception;

/**
 * @author dzh
 * @version 1.0.0.05020
 * <p>project: d-blog</p>
 * <p>created time: 2022/05/05 15:32</p>
 * <p>describe: 全局异常捕获</p>
 * <p>remarks: </p>
 **/
public class GlobalException extends RuntimeException {

    private static final long serialVersionUID = 8281724843694107471L;

    private  Integer code;

    public GlobalException(Integer code, String message) {

        super(message);

        this.code = code;
    }

    public Integer getCode() {

        return code;
    }

    public void setCode(Integer code) {

        this.code = code;
    }
}
